﻿<!--Copyright 2010 http://tv4home.codeplex.com
This file is part of TV4Home.Client.TVViewer.
TV4Home.Client.TVViewer is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
TV4Home.Client.TVViewer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with TV4Home.Client.TVViewer. If not, see http://www.gnu.org/licenses/-->
    <Page x:Class="TV4Home.Client.Desktop.TVViewer.Pages.TVViewer"
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
      xmlns:my="clr-namespace:TV4Home.Client.Desktop.TVViewer.Controls"              
      SnapsToDevicePixels="True"
      mc:Ignorable="d" Margin="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" MinHeight="250" MinWidth="505" Unloaded="Page_Unloaded">
    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Assets/CoreStyles.xaml"/>
                <ResourceDictionary Source="../Assets/CommonResources.xaml"/>
                <ResourceDictionary Source="../Assets/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>


        </ResourceDictionary>
    </Page.Resources>
    <Grid x:Name="gridRoot" Margin="0,0,0,0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="234" />
                <ColumnDefinition Width="776*" />      
            </Grid.ColumnDefinitions>      
            <Grid x:Name="grdProgram" Margin="3,14,5,14" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Column="0">
                <Rectangle Margin="0,0,0,0" Stroke="#FF2D2D2D" Fill="Transparent" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                    <Rectangle.Effect>
                        <DropShadowEffect Opacity="0.695" BlurRadius="14" ShadowDepth="0" Color="#FF434343"/>
                    </Rectangle.Effect>
                </Rectangle>
                <ListBox x:Name="lbChannels" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Path=DisplayName}" />
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                    <ListBox.ItemContainerStyle>
                        <Style TargetType="ListBoxItem">
                            <EventSetter Event="ListBoxItem.Selected" Handler="lbChannels_Selected" HandledEventsToo="True"/>
                        </Style>
                    </ListBox.ItemContainerStyle>
                </ListBox>
            </Grid>

        <Grid x:Name="gridMedia" Grid.Column="1">
            <MediaElement x:Name="meStream1" LoadedBehavior="Manual" MouseMove="meStream1_MouseMove"/>
            <Border Grid.Row="0" x:Name="brdCtrlBtn" Margin="0,10,0,0" HorizontalAlignment="Center" MinWidth="671" MaxWidth="671" MinHeight="74" MaxHeight="74" Visibility="Hidden" VerticalAlignment="Top">
                <!--<Grid Grid.Column="1" Margin="15">
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition Height="30" />
                    <RowDefinition Height="30" />
                </Grid.RowDefinitions>
                <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" Grid.Row="1">
                    <Slider Grid.Row="2" Name="sliderPosition" Maximum="1" LargeChange="0.05" Height="25" ValueChanged="SliderValueChanged" PreviewMouseLeftButtonDown="SliderMouseLeftButtonDown" PreviewMouseLeftButtonUp="SliderMouseLeftButtonUp" SmallChange="0.01" />
                </StackPanel>
                <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" Grid.Row="2">
                    <TextBlock Margin="5,3,5,0">Volume:</TextBlock>
                    <Slider Width="50" Name="sliderVolume" Maximum="100" SmallChange="1" LargeChange="5" ValueChanged="SliderVolumeValueChanged" />
                    <CheckBox Name="checkboxMute" IsChecked="False" Margin="5,3,5,0" Checked="CheckboxMuteCheckedChanged" Unchecked="CheckboxMuteCheckedChanged">Mute</CheckBox>
                    <Button Width="50" Name="buttonPlay" Click="ButtonPlayClick">Play</Button>
                    <Button Width="50" Name="buttonPause" Click="ButtonPauseClick">Pause</Button>
                    <Button Width="50" Name="buttonStop" Click="ButtonStopClick">Stop</Button>
                    <Button Width="50" Name="buttonOpen" Click="ButtonOpenClick">Open...</Button>
                    <TextBlock Margin="5,2" Name="textBlock"></TextBlock>                    
                </StackPanel>-->
            </Border>
        </Grid>
       
    </Grid>

</Page>
